import request from '@/utils/request'

//查询没有缴费的报名列表
export function listNoPayRegistration(query) {
  return request({
    url: '/registration/registration',
    method: 'get',
    params: query
  })
}

// 查询报名信息列表
export function listRegistration(query) {
  return request({
    url: '/registration/registration/list',
    method: 'get',
    params: query
  })
}

// 查询报名信息详细
export function getRegistration(regisId) {
  return request({
    url: '/registration/registration/' + regisId,
    method: 'get'
  })
}

// 新增报名信息
export function addRegistration(data) {
  return request({
    url: '/registration/registration',
    method: 'post',
    data: data
  })
}

// 修改报名信息
export function updateRegistration(data) {
  return request({
    url: '/registration/registration',
    method: 'put',
    data: data
  })
}

// 删除报名信息
export function delRegistration(regisId) {
  return request({
    url: '/registration/registration/' + regisId,
    method: 'delete'
  })
}
